package com.yonyou.iuap.jxzy.dao;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.yonyou.iuap.baseservice.persistence.mybatis.mapper.GenericExMapper;
import com.yonyou.iuap.jxzy.entity.LevmDeliverybill;
import com.yonyou.iuap.jxzy.entity.PoundderLiver;
import com.yonyou.iuap.mybatis.anotation.MyBatisRepository;

@MyBatisRepository
public interface PoundderLiverMapper extends GenericExMapper<PoundderLiver>{

	PoundderLiver selectAllParam(@Param(value="searchMap")Map<String, Object> map);

	String getPoundStatus(@Param(value="serialNo")String serialNo);
	
	String getPK_Poundbill(@Param(value="serialNo")String serialNo);

	/*void insertPoundBill_b(@Param(value="unit")BigDecimal unit,@Param(value="qualityGrade") String qualityGrade,@Param(value="heapNo") String heapNo,
			@Param(value="unPackNo")String unPackNo, @Param(value="buckleWaterWeight")String buckleWaterWeight,@Param(value="impurityWeight") String impurityWeight,
			@Param(value="averageWaterRatio")String averageWaterRatio, @Param(value="averageImpurityRatio")String averageImpurityRatio,
			@Param(value="pk_poundbill")String pk_poundbill);*/

	Integer updateCheapNo(@Param(value="heapNo") String heapNo, 
			@Param(value="averageWaterRatio")String averageWaterRatio,@Param(value="averageImpurityRatio")String averageImpurityRatio,
			@Param(value="averageDewateringWeight")String averageDewateringWeight,
			@Param(value="averageImpurityWeight")String averageImpurityWeight, 
			@Param(value="pk_poundbill")String pk_poundbill);

	Integer insertPoundBill_b(@Param(value="unit")BigDecimal unit,@Param(value="qualityGrade") String qualityGrade,
			@Param(value="heapNo")String heapNo,@Param(value="unPackNo")String unPackNo, 
			@Param(value="averageDewateringWeight")String averageDewateringWeight,
			@Param(value="averageImpurityWeight")String averageImpurityWeight, 
			@Param(value="averageWaterRatio")String averageWaterRatio,@Param(value="averageImpurityRatio")String averageImpurityRatio, 
			@Param(value="pk_poundbill")String pk_poundbill);

	List<String> getAveragewaterratio(@Param(value="pk_poundbill")String pk_poundbill);

}
